import request from "@/utils/request";

// 获取员工
export const getStaffApi = (params:any):Promise<GetStaffRes>=>request.get(`/staff/getstaffs?pageSize=${params.pageSize}&&pageNum=${params.pageNum}&&belongToShop=${params.belongToShop}&&isDel=${params.isDel}`)
// 添加员工
export const addStaffApi = (params:any):Promise<any>=>request.post('/staff/addstaffs',params)
// 删除员工
export const delStaffApi = (params:any):Promise<any>=>request.post('/staff/delstaffs',params)
// 修改员工
export const updateStaffApi = (params:any):Promise<any>=>request.post('/staff/updatestaffs',params)
// 搜索员工
export const searchStaffApi = (params:any):Promise<any>=>request.post('/staff/searchstaffs',params)